<?php
/**
 * Created by PhpStorm.
 * User: De Niro
 * Date: 15-4-22
 * Time: 上午11:01
 */
$db = new SQLite3('chatroom.db');//连接数据库
$sql = "select * from user";

//输出查询结果
$result = $db->query($sql);
$row = $result -> fetchArray(SQLITE3_ASSOC);
print_r($row);
